package tour.board.to;

public class RecommendTO {
	private String custId;
	private String boardName;
	private int boardNo;
	
	public RecommendTO(){}
	
	public RecommendTO(String custId, String boardName, int boardNo) {
		super();
		this.custId = custId;
		this.boardName = boardName;
		this.boardNo = boardNo;
	}

	public String getCustId() {
		return custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}

	public String getBoardName() {
		return boardName;
	}

	public void setBoardName(String boardName) {
		this.boardName = boardName;
	}

	public int getBoardNo() {
		return boardNo;
	}

	public void setBoardNo(int boardNo) {
		this.boardNo = boardNo;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((boardName == null) ? 0 : boardName.hashCode());
		result = prime * result + boardNo;
		result = prime * result + ((custId == null) ? 0 : custId.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		RecommendTO other = (RecommendTO) obj;
		if (boardName == null) {
			if (other.boardName != null)
				return false;
		} else if (!boardName.equals(other.boardName))
			return false;
		if (boardNo != other.boardNo)
			return false;
		if (custId == null) {
			if (other.custId != null)
				return false;
		} else if (!custId.equals(other.custId))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "RecommendTO [custId=" + custId + ", boardName=" + boardName
				+ ", boardNo=" + boardNo + "]";
	}

}
